<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<!--<input type="hidden" id="lineId" th:value="*{lineId}"/>-->
<input type="hidden" id="byqId" th:value="*{byqId}"/>
<!--<input type="hidden" id="pointId" th:value="*{pointId}"/>-->
<!--<input id="deviceIdArray" name="deviceIdArray" type="hidden">-->
     <div class="container-div">
		<div class="row">
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">

		var prefix = ctx + "assets/ThyDetiail";

//        var pointId = $("#pointId").val();//	点位ID
//        var lineId = $("#lineId").val();	//	线路ID
        var byqId = $("#byqId").val();		//	变压器ID


        $(function() {
            var options = {
                url: prefix + "/listBX?byqId="+byqId,
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove2Id",
				exportUrl: prefix + "/export",
                showSearch:false,		//是否显示检索信息
                showRefresh:false,		//是否显示刷新按钮
                showToggle:false,		//是否显示详细视图和列表视图的切换按钮
                showColumns:false,		//是否显示隐藏某列下拉框
                sortable:false,		//是否启用排序
                pagination: false,		//禁用分页插件
                modalName: "配电设备基类",
//		        showExport: true,
                columns: [{
		            checkbox: true
		        },
				{
					field : 'id', 
					title : '',
					visible: false
				},
                    {
                        field : 'byqId',
                        title : '变压器ID',
                        sortable: false,
                        visible: false
                    },
				{
					field : 'byqName',
					title : '变压器名',
					sortable: false,
                    visible: false
				},
				{
					field : 'lineId',
					title : '线路ID',
					sortable: false,
                    visible: false
				},
				{
					field : 'lineName',
					title : '线路名',
					sortable: false
				},

				{
					field : 'pointId',
					title : '点位id',
					sortable: false,
                    visible: false
				},
				{
					field : 'pointCode',
					title : '表箱号',
					sortable: false
				},
				{
					field : 'voltage',
					title : '电压',
					sortable: false
				},
                    {
                        field : 'dx',
                        title : '单相',
                        sortable: false
                    },{
                        field : 'sx',
                        title : '三相',
                        sortable: false
                    },
				{
					field : 'ws1',
					title : '1表位',
					sortable: false
				},{
					field : 'ws2',
					title : '2表位',
					sortable: false
				},{
					field : 'ws4',
					title : '4表位',
					sortable: false
				},{
					field : 'ws6',
					title : '6表位',
					sortable: false
				},{
					field : 'ws9',
					title : '9表位',
					sortable: false
				},{
					field : 'ws12',
					title : '12表位',
					sortable: false
				},
				{
					field : 'install_count',
					title : '装表数量',
					sortable: false
				}]
            };
            $.table.init(options);
        });

    </script>
</body>
</html>